package cn.topartip.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.gateway.config.GatewayProperties;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * 实现动态路由
 * @author lisonglin
 * @date 2021/7/30 3:17 下午
 */
@Component
@ConfigurationProperties("spring.cloud.gateway")
@Validated
@RefreshScope
@Primary
public class MyGatewayProperties extends GatewayProperties {
}
